package Logica;

import javax.swing.JOptionPane;

public class Main {

    public static void main(String[] args){
    
        setLookandFeel();
        
        try{
            
            JFPrincipal p = new JFPrincipal();
                      
        }
            
        catch(Exception e){
        
            JOptionPane.showMessageDialog(null, e.getMessage(), "Error!", JOptionPane.ERROR_MESSAGE);
        
        }
        
    
    }
    
    public static void setLookandFeel(){
    
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(JFPrincipal.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }        
    
    }
    
}
